﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Practices.CompositeUI;

namespace ServicesCollection
{
    public partial class Shell : Form
    {
        public Shell()
        {
            InitializeComponent();
        }

        private WorkItem item;

        [ServiceDependency]
        public WorkItem Item { set { item = value; } }

        private void button1_Click(object sender, EventArgs e)
        {
            item.Services.Get<IMyService>().TestMyService();
        }
    }
}
